
FROM golang:1.24.7 as builder
RUN mkdir /build
ADD . /build/
WORKDIR /build
RUN make build-cli-octops

FROM alpine:3.22
RUN apk --no-cache add ca-certificates
ENV OCTELIUM_CONTAINER_MODE=true
COPY --from=builder /build/bin/octops /usr/bin/
ENTRYPOINT ["/usr/bin/octops"]